
      
<h1 class="mume-header" id="nginx%E4%B9%8B%E5%AE%89%E8%A3%85">nginx&#x4E4B;&#x5B89;&#x88C5;</h1>

<h2 class="mume-header" id="%E4%B8%8B%E8%BD%BD">&#x4E0B;&#x8F7D;</h2>

<ul>
<li>&#x5230;<a href="http://nginx.org/en/download.html">nginx&#x5B98;&#x7F51;&#x4E0B;&#x8F7D;</a><br>
<img src="/./images/nginx-download.png" alt="nginx&#x4E0B;&#x8F7D;&#x9875;&#x9762;"><br>
&#x5EFA;&#x8BAE;&#x4E0B;&#x8F7D;&#x7A33;&#x5B9A;&#x7248;&#x672C;(Stable version)
<ul>
<li>CHANGES-1.14<br>
&#x7248;&#x672C;&#x66F4;&#x65B0;&#x65E5;&#x5FD7;</li>
<li>nginx-1.14.0<br>
&#x6E90;&#x7801;&#xFF0C;Mac&#x3001;Linux&#x901A;&#x8FC7;&#x7F16;&#x8BD1;&#x6B64;&#x6E90;&#x7801;&#x5B89;&#x88C5;</li>
<li>nginx/Windows-1.14.0<br>
window&#x7248;&#x7684;nginx&#x3002;&#x4E0B;&#x8F7D;&#x89E3;&#x538B;&#x540E;&#x76F4;&#x63A5;&#x8FD0;&#x884C;nginx.exe</li>
<li>pgp<br>
&#x6587;&#x4EF6;&#x7B7E;&#x540D;&#xFF0C;&#x7528;&#x4EE5;&#x6587;&#x4EF6;&#x9A8C;&#x8BC1;</li>
</ul>
</li>
<li>&#x901A;&#x8FC7;wget&#x547D;&#x4EE4;<br>
&#x672C;&#x6587;&#x4EE5;CentOS&#x4E0B;&#x5B89;&#x88C5;nginx&#x4E3A;&#x4F8B;&#xFF0C;wget&#x7684;&#x7528;&#x6CD5;&#x89C1;&#x540E;&#x6587;</li>
</ul>
<h2 class="mume-header" id="%E5%AE%89%E8%A3%85%E5%85%A8%E6%AD%A5%E9%AA%A4">&#x5B89;&#x88C5;&#x5168;&#x6B65;&#x9AA4;</h2>

<h3 class="mume-header" id="yum%E5%AE%89%E8%A3%85">yum&#x5B89;&#x88C5;</h3>

<blockquote>
<p>yum&#x9ED8;&#x8BA4;&#x5B89;&#x88C5;&#x7684;nginx&#x7248;&#x672C;&#x8F83;&#x8001;&#xFF08;&#x5199;&#x672C;&#x6587;&#x65F6;&#x7248;&#x672C;&#x4E3A;1.10.2-1&#xFF09;&#xFF0C;&#x5982;&#x679C;&#x4F60;&#x60F3;&#x5B89;&#x88C5;&#x6700;&#x65B0;&#x7A33;&#x5B9A;&#x7248;&#xFF0C;&#x8BF7;&#x53C2;&#x8003;<strong>&#x624B;&#x52A8;&#x5B89;&#x88C5;</strong></p>
</blockquote>
<pre data-role="codeBlock" data-info="" class="language-"><code>yum install nginx  
</code></pre><p>&#x5982;&#x679C;&#x53EF;&#x4EE5;&#x5B89;&#x88C5;&#xFF0C;&#x4F1A;&#x63D0;&#x793A;&#xFF1A;</p>
<pre data-role="codeBlock" data-info="shell" class="language-shell">&#x786E;&#x5B9A;&#x5417;&#xFF1F;<span class="token punctuation">[</span>y/N<span class="token punctuation">]</span>  
</pre><p>&#x8F93;&#x5165;<code>y</code>&#x56DE;&#x8F66;&#xFF0C;&#x7EE7;&#x7EED;&#x5B89;&#x88C5;&#xFF0C;&#x5B8C;&#x6BD5;&#xFF01;</p>
<h3 class="mume-header" id="%E6%89%8B%E5%8A%A8%E5%AE%89%E8%A3%85">&#x624B;&#x52A8;&#x5B89;&#x88C5;</h3>

<ul>
<li>&#x4E0B;&#x8F7D;<pre data-role="codeBlock" data-info="shell" class="language-shell"><span class="token function">cd</span> ~/download/  
<span class="token function">wget</span> -c http://nginx.org/download/nginx-1.14.0.tar.gz  

</pre><blockquote>
<p><strong>&#x4E0B;&#x8F7D;&#x5730;&#x5740;</strong>&#x53EF;&#x901A;&#x8FC7;&#x5728;&#x5B98;&#x7F51;&#x9875;&#x9762;&#x53F3;&#x952E;&#x5355;&#x51FB;&#x8981;&#x4E0B;&#x8F7D;&#x7684;&#x6587;&#x4EF6;&#x94FE;&#x63A5;&#xFF0C;&#x9009;&#x62E9;&#x201C;&#x590D;&#x5236;&#x94FE;&#x63A5;&#x201D;&#x83B7;&#x53D6;&#x3002;</p>
</blockquote>
</li>
<li>&#x89E3;&#x538B;<pre data-role="codeBlock" data-info="shell" class="language-shell"><span class="token function">tar</span> zxvf nginx-1.14.0.tar.gz  
</pre></li>
<li>&#x7F16;&#x8BD1;&#x5B89;&#x88C5;
<ul>
<li>&#x7F16;&#x8BD1;&#x73AF;&#x5883;&#x51C6;&#x5907;<pre data-role="codeBlock" data-info="shell" class="language-shell">yum -y <span class="token function">install</span> gcc gcc-c++ autoconf automake <span class="token function">make</span>  
yum -y <span class="token function">install</span> zlib zlib-devel openssl openssl--devel pcre pcre-devel  
</pre></li>
<li>&#x914D;&#x7F6E;<pre data-role="codeBlock" data-info="shell" class="language-shell"><span class="token function">cd</span> nginx-1.14.0  
./configure  
</pre>&#x51FA;&#x73B0;&#x5982;&#x4E0B;&#x4FE1;&#x606F;&#xFF0C;&#x8BF4;&#x660E;&#x914D;&#x7F6E;&#x6210;&#x529F;&#xFF01;<br>
<img src="/./images/nginx-configure-succ.png" alt="nginx&#x914D;&#x7F6E;&#x6210;&#x529F;"></li>
<li>&#x7F16;&#x8BD1;&#x5E76;&#x5B89;&#x88C5;<pre data-role="codeBlock" data-info="shell" class="language-shell"><span class="token function">make</span> <span class="token operator">&amp;&amp;</span> <span class="token function">make</span> <span class="token function">install</span>  
</pre>&#x5B89;&#x88C5;&#x6210;&#x529F;&#xFF01;<br>
<img src="/./images/nginx-install-succ.png" alt="nginx&#x5B89;&#x88C5;&#x6210;&#x529F;"></li>
</ul>
</li>
</ul>
<h2 class="mume-header" id="%E6%B5%8B%E8%AF%95">&#x6D4B;&#x8BD5;</h2>

<p>&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x8F93;&#x5165;nginx&#x670D;&#x52A1;&#x5668;IP&#x5E76;&#x56DE;&#x8F66;&#xFF0C;&#x663E;&#x793A;nginx&#x6B22;&#x8FCE;&#x9875;&#x9762;<br>
<img src="/./images/nginx-install-succ-test.png" alt="nginx&#x5B89;&#x88C5;&#x6210;&#x529F;"></p>

      